AttributeError: module tensorflow has no attribute GraphDef

36

tf.compat.v1.GraphDef()   # -> instead of tf.GraphDef()
tf.compat.v2.io.gfile.GFile()   # -> instead of tf.gfile.GFile()
Eager execution is enabled by default in version 2.x 
You can check that by using:

tf.executing_eagerly()

Comments

Submit
0 Comments